<html>

<head>
    <script type="text/javascript">
        function show_coords(event) {
            console.log(event);
            x = event.clientX
            y = event.clientY


            console.log("clientX=" + x + ", clientY=" + y);
            console.log("pageX=" + event.pageX + ", pageY=" + event.pageY);
            console.log("screenX=" + event.screenX + ", screenY=" + event.screenY);
        }
    </script>
</head>

<body onmousedown="show_coords(event)">

    <!-- <p>Click in the document. An alert box will alert the x and y coordinates of the mouse pointer.</p> -->

</body>

</html>